import { useState, useEffect } from 'react'
import { Tag } from 'tdesign-react'

const TableOperateButton = (props: any) => {

  const {
    shape = "square",
    theme = 'info',
    variant = "light-outline",
    label = '',
    Icon = undefined
  } = props

  const [state, setState] = useState({})

  useEffect(() => {

  }, [state])

  return <div className='table-tag'>
    <Tag
      shape={shape}
      theme={theme}
      variant={variant}
      icon={Icon}
    >
      {label}
    </Tag>
  </div>
}

export default TableOperateButton
